//
//  HWTrialSwitchCell.h
//  HuaWan
//
//  Created by HuaWan  on 2023.
//  Copyright © 2023 HuaWan . All rights reserved.
//

#import "BaseTableViewCell.h"

@class HWTrialSwitchCell;
@class HWTrialSwitchCellModel;

@protocol HWTrialSwitchCellDelegate <NSObject>

- (void)trialSwitchCell:(HWTrialSwitchCell *)cell isOn:(BOOL)isOn;

@end

@interface HWTrialSwitchCell : BaseTableViewCell

@property (nonatomic,weak) id<HWTrialSwitchCellDelegate> delegate;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UISwitch *mySwitch;
@property (strong, nonatomic) HWTrialSwitchCellModel *model;

@end



#pragma mark - Model

@interface HWTrialSwitchCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) BOOL isOn;

+ (HWTrialSwitchCellModel *)ittemModelWithTitle:(NSString *)title isOn:(BOOL)isOn;

@end



